obj-m := test.o
module-objs := test.o
CURRENT_PATH := $(shell pwd)
LINUX_KERNEL := $(shell uname -r)
#redhat源代码地址
LINUX_KERNEL_PATH := /home/lifelong0811/app/linux-3.10.9/
#LINUX_KERNEL_PATH := /home/lifelong0811/work/linux-2.6.32.65

all:
	make -C $(LINUX_KERNEL_PATH) M=$(CURRENT_PATH) modules
clean:
	make -C $(LINUX_KERNEL_PATH) M=$(CURRENT_PATH) clean


